package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.dingreading.cloud.admin.entity.CourseTrainFile;

import java.util.List;
import java.util.Map;

/**
 * 叮叮线下培训课程文件表 服务层。
 *
 * @author EDY
 * @since 2025-11-18
 */
public interface CourseTrainFileService extends IService<CourseTrainFile> {

    Page<CourseTrainFile> pageFileList(PageUtil pageUtil, String lessonUid, String keyword, Integer enabled);

    CourseTrainFile getByUid(String uid);

    List<CourseTrainFile> getByLessonUid(String lessonUid);

    Map<String, Integer> getFileVideosDurations(List<String> fileUids);
}
